/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.yournamehere.client;

import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.VerticalAlignment;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.Window;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.events.CloseClickHandler;
import com.smartgwt.client.widgets.events.CloseClientEvent;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.layout.VLayout;

/**
 *
 * @author User
 */
public class fmrMatricula extends Window{

    fmrMatricula()
    {
        Init();
    }

    void Init()
    {
        setWidth(360);
        setHeight(115);
        setTitle("Matricula");
        setShowMinimizeButton(false);
        setIsModal(true);
        setShowModalMask(true);
        centerInPage();
        setAlign(Alignment.CENTER);
        addCloseClickHandler(new CloseClickHandler() {
            public void onCloseClick(CloseClientEvent event) {
                destroy();
            }
        });
        DynamicForm form = new DynamicForm();
        form.setHeight100();
        form.setWidth100();
        form.setPadding(5);
        form.setLayoutAlign(VerticalAlignment.BOTTOM);
        TextItem textItem = new TextItem();
        textItem.setTitle("Recibo");
        form.setFields(textItem);
        IButton Acept=new IButton("Aceptar");
        
        Acept.addClickHandler(new ClickHandler(){
            public void onClick(ClickEvent event) {
                destroy();
                Window cursos=new fmrCurso();
                cursos.show();
            }
        });

        Acept.setAlign(Alignment.CENTER);
        VLayout tmp=new VLayout();
        tmp.setHeight("100%");
        tmp.setWidth("100%");
        tmp.setAlign(Alignment.CENTER);
        tmp.addMember(form);
        tmp.addMember(Acept);
        addItem(tmp);
    }
}
